package com.wmjsoft.handler

import net.cloudopt.next.web.Resource
import net.cloudopt.next.web.handler.AutoHandler
import net.cloudopt.next.web.handler.Handler

@AutoHandler
class ShowRouteHandler: Handler {
    override fun afterCompletion(resource: Resource): Boolean {
        print("http2")
        return true
    }

    override fun afterRender(resource: Resource, bodyString: String): Boolean {
        print("http1")
        return true
    }

    override fun postHandle(resource: Resource): Boolean {
        print("http")
        return true
    }

    override fun preHandle(resource: Resource): Boolean {
        val request = resource.request
        val headers = request.headers()
        val s = headers["Accept-Encoding"]
        return true


    }
}